package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Category;
import com.itheima.reggie.domain.Employee;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {


    //登录
    Employee findByUsername(String username);

    //查询员工列表
    List<Employee> findList(String name);

    //添加员工
    void save(Employee employee);

    //ID回显
    Employee findById(Long id);

    //修改员工
    //int updateById(Employee employee);
}